<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php echo ($title); ?></title>
<script type="text/javascript" src="/xiaoshuo/Public/static/js/jquery.min.js"></script>
<script type="text/javascript" src="/xiaoshuo/Public/bootstrap/js/bootstrap.min.js"></script>
<link href="/xiaoshuo/Public/bootstrap/css/xs.min.css" rel="stylesheet" type="text/css" />

</head>

<body>
<nav class="navbar navbar-default">
  <div class="container-fluid container">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">小说系统</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
      <a class="navbar-brand" href="#">小说系统</a> </div>
    
    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
      <li class="active"><a href="#">排行榜<span class="sr-only">(current)</span></a></li>
      <li><a href="#">最新更新</a></li>
      <li><a href="#">热门小说</a></li>
      
        <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">更多 <span class="caret"></span></a>
          <ul class="dropdown-menu" role="menu">
            <?php if(is_array($type_list)): $i = 0; $__LIST__ = $type_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$type): $mod = ($i % 2 );++$i;?><li><a href="#"><?php echo ($type["type_name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
          </ul>
        </li>
      </ul>
      <ul class="nav navbar-nav navbar-right">
        <form class="navbar-form navbar-left" action="/xiaoshuo/index.php/Home/Book/index" method="post" role="search">
          <div class="form-group">
            <input type="text" name="book_name" class="form-control" placeholder="小说名称">
          </div>
          <button type="submit" class="btn btn-default">搜索</button>
        </form>
        <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">用户名 <span class="caret"></span></a>
          <ul class="dropdown-menu" role="menu">
            <li><a href="#">修改资料</a></li>
            <li><a href="#">我的收藏</a></li>
            <li><a href="#">看过的书</a></li>
            <li><a href="#">留言互动</a></li>
            <li class="divider"></li>
            <li><a href="#">退出</a></li>
          </ul>
        </li>
      </ul>
    </div>
    <!-- /.navbar-collapse --> 
  </div>
  <!-- /.container-fluid --> 
</nav>
<div class="container">

<div class="row">
  <div class="col-sm-6 col-md-8">
  
    <?php if(is_array($book_list)): $i = 0; $__LIST__ = array_slice($book_list,0,4,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$book): $mod = ($i % 2 );++$i;?><div class="thumbnail col-md-6" style="margin-bottom:0px; min-height:260px;">
      <div class="thumbnail col-md-4"> <a href="/xiaoshuo/index.php/Home/Book/?book_id=<?php echo ($book["_id"]); ?>"><img src="<?php echo ($book["thumbnail"]); ?>" class="img-thumbnail" alt="..."></a></div>
      <div class="thumbnail col-md-8">
        <h5><a href="/xiaoshuo/index.php/Home/Book/?book_id=<?php echo ($book["_id"]); ?>"><?php echo ($book["book_name"]); ?></a></h5>
        <p><?php echo ($book["intro"]); ?></p>
      </div>
    </div><?php endforeach; endif; else: echo "" ;endif; ?>
    
  </div>
  
  
  
  <div class="col-sm-6 col-md-4">
    <div class="panel panel-default">
      <div class="panel-heading">经典推荐</div>
      <div class="panel-body">
        <div class="list-group"> 
        	<?php if(is_array($book_list)): $i = 0; $__LIST__ = array_slice($book_list,0,10,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$book): $mod = ($i % 2 );++$i;?><a href="/xiaoshuo/index.php/Home/Book/?book_id=<?php echo ($book["_id"]); ?>" class="list-group-item"><?php echo ($book["book_name"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
      </div>
    </div>
  </div>
  
</div>
<br />
<div class="row">

<?php if(is_array($type_list)): $i = 0; $__LIST__ = $type_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$type): $mod = ($i % 2 );++$i;?><div class="col-sm-6 col-md-4">
    <div class="panel panel-default"> 
      <!-- Default panel contents -->
      <div class="panel-heading"><?php echo ($type["type_name"]); ?></div>
      <div class="panel-body">
        <div class="thumbnail col-md-4"> <img src="http://www.xbiquge.com//BookFiles/BookImages/xueyinglingzhu.jpg" class="img-thumbnail" alt="..."></div>
        <div class="thumbnail col-md-8">
          <h5><a href="#">武炼巅峰</a></h5>
          <p>武之巅峰，是孤独，是寂寞，是漫漫求索，是高处不胜寒 逆境中成长，绝地里求生，不屈不饶，才能堪破武之极道</p>
        </div>
      </div>
      <!-- Table -->
      <table class="table">
        <tbody>
          <tr>
            <td>小说名称/<small>作者</small></td>
            <td>小说名称/<small>作者</small></td>
          </tr>
          <tr>
            <td>小说名称/<small>作者</small></td>
            <td>小说名称/<small>作者</small></td>
          </tr>
          <tr>
            <td>小说名称/<small>作者</small></td>
            <td>小说名称/<small>作者</small></td>
          </tr>
          <tr>
            <td>小说名称/<small>作者</small></td>
            <td>小说名称/<small>作者</small></td>
          </tr>
          <tr>
            <td>小说名称/<small>作者</small></td>
            <td>小说名称/<small>作者</small></td>
          </tr>
        </tbody>
      </table>
    </div>
  </div><?php endforeach; endif; else: echo "" ;endif; ?> 
 

</div>

<hr />



<footer>
        <p style="text-align:center;">&copy; Company 2015  |  京ICP备11008151号 </p>
</footer>
    



</div>
</body>
</html>